// This file mocks the axios module completely
const mockAxios = {
  get: () => Promise.resolve({
    data: {
      mocked: true
    }
  }),
  post: () => Promise.resolve({
    data: {
      mocked: true
    }
  }),
  put: () => Promise.resolve({
    data: {
      mocked: true
    }
  }),
  delete: () => Promise.resolve({
    data: {
      mocked: true
    }
  }),
  patch: () => Promise.resolve({
    data: {
      mocked: true
    }
  }),
  request: () => Promise.resolve({
    data: {
      mocked: true
    }
  }),
  create: () => mockAxios,
  defaults: {
    headers: {
      common: {},
      get: {},
      post: {},
      put: {},
      delete: {}
    },
    timeout: 0,
    baseURL: ''
  },
  interceptors: {
    request: {
      use: () => 0,
      eject: () => {}
    },
    response: {
      use: () => 0,
      eject: () => {}
    }
  }
};
// Make sure this is exported as both default and named exports
module.exports = mockAxios;
module.exports.default = mockAxios;